package com.google.code.struts2jruby.ognl;

import java.io.File;

/**
 * A test case helper class.
 * @author Richard L. Burton III
 */
public class Script {

    private String name;

    private String base;

    public Script(String base) {
        this.base = base;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public File getFile() {
        return new File(base, name);
    }

    public String getNewSyntax() {
        return name.split("\\.")[0] + ".new";
    }
}
